{% extends "pretixcontrol/admin/base.html" %}
{% load i18n %}

{% block video_admin_content %}
<h1 class="page-header">{% trans "Users" %}</h1>
<div class="video-admin-btn-row">
    <a href="{% url 'eventyay_admin:video_admin:auth.signup' %}" class="btn btn-primary btn-sm">
        <span class="fa fa-user-plus"></span> {% trans "Add new user" %}
    </a>
</div>
<div class="video-admin-table-wrapper">
<table class="table table-striped table-hover video-admin-table">
    <thead>
    <tr>
        <th>{% trans "Email" %}</th>
        <th class="text-right">{% trans "Actions" %}</th>
    </tr>
    </thead>
    <tbody>
    {% for user in users %}
    <tr>
        <td><strong>{{ user.email }}</strong></td>
        <td class="text-right video-admin-actions">
            <a href="{% url 'eventyay_admin:video_admin:user.update' pk=user.pk %}" class="btn btn-default btn-xs">
                <span class="fa fa-pencil"></span> {% trans "Edit" %}
            </a>
        </td>
    </tr>
    {% empty %}
        <tr><td colspan="2" class="text-muted">{% trans "No users found." %}</td></tr>
    {% endfor %}
    </tbody>
</table>
</div>
{% endblock %}
